package com.demo.mapper;

import com.demo.common.MessageUtils;
import com.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> Select();//查询所有用户
    void Inserts(List<User> users);//批量添加用户

    List<User> VagueSelect(String str);//模糊查询

    int updateUser(User user);//更新用户

    int deleteUser(String id);//删除用户

    User SelectUser(@Param("username")String username, @Param("password")String password);//用户登录
}
